package cn.yangliu.nacos.comm.model;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * The type of nacos.
 *
 * @author 问道于盲
 * @date 2019 -12-31
 */
@Data
public class Oauth2Token implements Serializable {

    /**
     * current class's static member
     * The constant serialVersionUID.
     */
    private static final long serialVersionUID = 1621046000857132714L;

    /**
     * current class instance's member.
     * The Access token.
     */
    @JsonProperty("access_token")
    private String accessToken;

    /**
     * current class instance's member.
     * The Refresh token.
     */
    @JsonProperty("refresh_token")
    private String refreshToken;

    /**
     * current class instance's member.
     * The Token type.
     */
    @JsonProperty("token_type")
    private String tokenType;

    /**
     * current class instance's member.
     * The Expires in.
     */
    @JsonProperty("expires_in")
    private Long expiresIn;

    /**
     * current class instance's member.
     * The Scope.
     */
    private String scope;

    /**
     * current class instance's member.
     * The Jti.
     */
    private String jti;

}
